<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.27.6/babel.min.js"></script>
    <script
      crossorigin
      src="https://unpkg.com/react@18/umd/react.development.js"
    ></script>
    <script
      crossorigin
      src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
    ></script>
  </head>
  <body>
    <div id="div"></div>
    <script type="text/babel">
      function MyUseState(val) {

      }
      function Mycommponent() {
        const [text,setText] = MyUseState('123');
        return <>函数组件</>;
      }

      ReactDOM.createRoot(document.getElementById("div")).render(
        <Mycommponent />
      );
    </script>
  </body>
</html>
